package com.ysj.demo.accompanynetwork;

import com.ysj.demo.accompanynetwork.bean.BonuspointSearchModel;
import com.ysj.demo.accompanynetwork.bean.PartnerConsumeRecord;
import com.ysj.demo.accompanynetwork.bean.RestRsp;
import com.ysj.demo.accompanynetwork.service.bean.page.Page;
import retrofit2.Call;
import retrofit2.http.Body;
import retrofit2.http.Headers;
import retrofit2.http.POST;

public interface BounsPointsService {

    @Headers({"Content-Type: application/json", "Accept:  application/json"})
    @POST("/points/pointlog")
    Call<RestRsp<Page<PartnerConsumeRecord>>> search(@Body BonuspointSearchModel favouritePost);

    @Headers({"Content-Type: application/json", "Accept:  application/json"})
    @POST("/points/userPoint")
    Call<RestRsp> userPoint(@Body BonuspointSearchModel searchModel);
}
